package com.mc.moring.main.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mc.moring.R;
import com.mc.moring.bean.StationMessageListBean;
import com.mc.moring.util.ImageUtil;
import com.mc.moring.util.TimeUtils;


public class SellBillAdapter extends BaseQuickAdapter<StationMessageListBean.listBean, BaseViewHolder> {

    public SellBillAdapter() {
        super(R.layout.item_msg_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, StationMessageListBean.listBean item) {
        helper.setText(R.id.tv_1, item.getPushTitle());
        helper.setText(R.id.tv_2, item.getPushContent());
        helper.setText(R.id.tv_3, TimeUtils.timeStamp2Date(item.getSendTime(), "dd-MM-yyyy HH:mm:ss"));
        ImageUtil.loadErrorImageView(item.getPictureUrl(), helper.getView(R.id.iv_img));
    }

}
